package com.ikas.ai.server.module.morningpaper.model.elements.condition.u01;

import com.ikas.ai.server.module.morningpaper.consts.MorningPaperElementPriorities;
import com.ikas.ai.server.module.morningpaper.consts.MorningPaperNormalVariableNames;
import com.ikas.ai.server.module.morningpaper.model.dto.MorningPaperVariablesDto;
import com.ikas.ai.server.module.morningpaper.model.elements.condition.AbstractElementMachineConditionCount;
import com.ikas.ai.server.module.morningpaper.model.po.MorningPaperVariablesPo;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
@Lazy
public class ElementMachineU01ConditionGPowerUpCount extends AbstractElementMachineConditionCount {


    protected String MORNING_PAPER_VARIABLE_NAME = MorningPaperNormalVariableNames.machineU01ConditionGPowerUpCount.name();

    @Override
    public String getMorningPaperVariableName() {
        return MORNING_PAPER_VARIABLE_NAME;
    }
    protected MorningPaperElementPriorities PRIORITY = MorningPaperElementPriorities.FIRST_PRIORITY;

    @Override
    public MorningPaperElementPriorities getPriority(){
        return PRIORITY;
    }

    @Override
    public MorningPaperVariablesDto render(MorningPaperVariablesDto mv, Map<String, MorningPaperVariablesPo> variablesPoMap,Map<String,Object> transmitMap) {
        super.render(mv, variablesPoMap,transmitMap);
        mv.setMachineU01ConditionGPowerUpCount(fillConditionCount(this,transmitMap));
        return mv;
    }
}
